---
title: "SQL-VP-014: Retrieve a policy's secondary cancel status"
summary: Invokes an Oracle scalar function via DUAL to retrieve a policy's secondary cancellation status.
status: draft
owner: SAIF Claims BOF team
last_reviewed: 2026-08-21
library: SAIF.Business.View.Policy
reference_type: embedded
---

# SQL-VP-014 Retrieve a policy's secondary cancel status

Invokes the Oracle scalar function `sp72268_get_cancel_status` via a `SELECT ... FROM DUAL`, used by
`clsPolicyData.GetSecondaryPolicyStatus`.

## Classification

| Field | Value |
| --- | --- |
| **SQL ID** | SQL-VP-014 |
| **Operation type** | Read |
| **Execution method** | Inline SQL (scalar function invocation via `DUAL`) |
| **Database** | Oracle |
| **Schema** | `[unqualified]**` |
| **Command type** | Text |
| **Business object** | `clsPolicyData` |
| **Criteria property** | `GetSecondaryPolicyStatus()` (ad hoc method) |
| **Lifecycle method** | ad hoc method |

## Parameters

| Parameter | Direction | Type | Max length | Description |
| --- | --- | --- | --- | --- |
| `:in_policy_num` | Input | Decimal | N/A | Policy number to check secondary status for. |

## Tables

| Table | Access | Columns used |
| --- | --- | --- |
| [DUAL](../database-tables.md#dual) | SELECT | N/A |

## Sample SQL

```sql
SELECT sp72268_get_cancel_status(:in_policy_num)
FROM dual
```

> **Note:** Statements marked with `*` were inferred from code structure, naming
> conventions, or contextual evidence where direct confirmation was not available
> in source artifacts. Statements marked with `**` could not be confirmed; treat
> as unknown until verified.

## Sources
- `SAIF.Business.View.Policy\clsPolicyData.vb`
